package com.zy.studentSide.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zy.studentSide.dao.StudentTaskDao;
import com.zy.studentSide.entity.StudentTask;
import com.zy.studentSide.service.IStudentTaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 29787
 */
@Service
public class IStudentTaskServiceImpl extends ServiceImpl<StudentTaskDao, StudentTask> implements IStudentTaskService {

    @Autowired
    private StudentTaskDao studentTaskDao;

    @Override
    public StudentTask getStudentTask(Integer classroomId, Integer studentId, Integer taskId, Integer teacherId, Integer courseId) {
        return studentTaskDao.getStudentTask(classroomId, studentId, taskId, teacherId, courseId);
    }

    @Override
    public List<StudentTask> getStudentTaskById(Integer classroomId, Integer taskId, Integer teacherId, Integer courseId) {
        return studentTaskDao.getStudentTaskById(classroomId, taskId, teacherId,courseId);
    }

}
